<div id="login" class="section">

    <div class="section-title"><?php echo $heading_title?></div>

    <div class="section-content">
        <form id="frmLogin" action="" method="post">
        	<?php if($error['error_warning']) {?>
            <div class="error"><?php echo $error_warning?></div>
             <div class="clearer">&nbsp;</div>
            <?php } ?>
            <div class="col2 left">
                	
                    <div>
                        
                        <p>
                            <label for="username">Tên đăng nhập</label><br>
                            <input type="text" class="text" id="username" name="username"  value="<?php echo $username?>" />
                        </p>
                        
                        <p>
                            <label for="password">Mật khẩu</label><br>
                            <input type="password" class="text" id="password" name="password" />
                        </p>
                        
                        <p style="display:none">
                            <label for="password">Website</label><br>
                            <select name="siteid">
                            	<?php foreach($sites as $site) {?>
                                	<option value="<?php echo $site['siteid']?>"><?php echo $site['sitename']?></option>
                            	<?php } ?>
                            </select>
                            
                        </p>
                        
                        <!--<p>
                            <label for="password">Mã bảo vệ:</label><br>
                            <input type="text" class="text" name="code" /><br />
							<img src="<?php echo $security?>" />
                        </p>-->
                        
                        
        
                    </div>			
                
            </div>
            
            <div class="col2 right">
                <img width="128" src="<?php echo DIR_IMAGE?>lock.png" alt="" class="left" />
            </div>
            
            <div class="clearer">&nbsp;</div>
            
            <p>
                <a class="button login" onclick="$('#frmLogin').submit()">Đăng nhập</a>&nbsp;
                <a class="button forget" href="?route=common/forgotpassword">Quên mật khẩu</a>
            </p>
        </form>
    </div>
    
</div>
<script language="javascript">
$('#password').keyup(function(e) {
    if(e.keyCode == 13)
		$('#frmLogin').submit()
});
</script>